package com.oms.domain;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Message entity. @author MyEclipse Persistence Tools
 */

public class Message implements java.io.Serializable {

	


	@Override
	public String toString() {
		return "Message [messageId=" + messageId + ", messageType="
				+ messageType + ", messageTitle=" + messageTitle
				+ ", messageComment=" + messageComment + ", sendTime="
				+ sendTime + ", promulgatorDelete=" + promulgatorDelete
				+ ", lastUpdateTime=" + lastUpdateTime + ", deleteTag="
				+ deleteTag + "]";
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = -2178606416325245821L;
	
	// Fields
	private Integer messageId;
	private User user;
	private Short messageType;
	private String messageTitle;
	private String messageComment;
	private Timestamp sendTime;
	private Boolean promulgatorDelete;
	private Timestamp lastUpdateTime;
	private Boolean deleteTag;
	private String expandBar1;
	private String expandBar2;
	private Set acknowledgements = new HashSet(0);

	// Constructors

	/** default constructor */
	public Message() {
	}
	
	public Message(User user, Short messageType, String messageTitle,
			String messageComment, Timestamp sendTime,
			Boolean promulgatorDelete, Timestamp lastUpdateTime,
			Boolean deleteTag) {
		super();
		this.user = user;
		this.messageType = messageType;
		this.messageTitle = messageTitle;
		this.messageComment = messageComment;
		this.sendTime = sendTime;
		this.promulgatorDelete = promulgatorDelete;
		this.lastUpdateTime = lastUpdateTime;
		this.deleteTag = deleteTag;
	}

	/** minimal constructor */
	public Message(User user, Short messageType, String messageTitle,
			String messageComment, Timestamp sendTime,
			Boolean promulgatorDelete, Boolean deleteTag) {
		this.user = user;
		this.messageType = messageType;
		this.messageTitle = messageTitle;
		this.messageComment = messageComment;
		this.sendTime = sendTime;
		this.promulgatorDelete = promulgatorDelete;
		this.deleteTag = deleteTag;
	}

	/** full constructor */
	public Message(User user, Short messageType, String messageTitle,
			String messageComment, Timestamp sendTime,
			Boolean promulgatorDelete, Timestamp lastUpdateTime,
			Boolean deleteTag, String expandBar1, String expandBar2,
			Set acknowledgements) {
		this.user = user;
		this.messageType = messageType;
		this.messageTitle = messageTitle;
		this.messageComment = messageComment;
		this.sendTime = sendTime;
		this.promulgatorDelete = promulgatorDelete;
		this.lastUpdateTime = lastUpdateTime;
		this.deleteTag = deleteTag;
		this.expandBar1 = expandBar1;
		this.expandBar2 = expandBar2;
		this.acknowledgements = acknowledgements;
	}

	// Property accessors

	public Integer getMessageId() {
		return this.messageId;
	}

	public void setMessageId(Integer messageId) {
		this.messageId = messageId;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Short getMessageType() {
		return this.messageType;
	}

	public void setMessageType(Short messageType) {
		this.messageType = messageType;
	}

	public String getMessageTitle() {
		return this.messageTitle;
	}

	public void setMessageTitle(String messageTitle) {
		this.messageTitle = messageTitle;
	}

	public String getMessageComment() {
		return this.messageComment;
	}

	public void setMessageComment(String messageComment) {
		this.messageComment = messageComment;
	}

	public Timestamp getSendTime() {
		return this.sendTime;
	}

	public void setSendTime(Timestamp sendTime) {
		this.sendTime = sendTime;
	}

	public Boolean getPromulgatorDelete() {
		return this.promulgatorDelete;
	}

	public void setPromulgatorDelete(Boolean promulgatorDelete) {
		this.promulgatorDelete = promulgatorDelete;
	}

	public Timestamp getLastUpdateTime() {
		return this.lastUpdateTime;
	}

	public void setLastUpdateTime(Timestamp lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public Boolean getDeleteTag() {
		return this.deleteTag;
	}

	public void setDeleteTag(Boolean deleteTag) {
		this.deleteTag = deleteTag;
	}

	public String getExpandBar1() {
		return this.expandBar1;
	}

	public void setExpandBar1(String expandBar1) {
		this.expandBar1 = expandBar1;
	}

	public String getExpandBar2() {
		return this.expandBar2;
	}

	public void setExpandBar2(String expandBar2) {
		this.expandBar2 = expandBar2;
	}

	public Set getAcknowledgements() {
		return this.acknowledgements;
	}

	public void setAcknowledgements(Set acknowledgements) {
		this.acknowledgements = acknowledgements;
	}

}